<?xml version="1.0"?>
<!--
    ***** BEGIN LICENSE BLOCK *****
    
    Copyright © 2009 Center for History and New Media
                     George Mason University, Fairfax, Virginia, USA
                     http://zotero.org
    
    This file is part of Zotero.
    
    Zotero is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    Zotero is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
    
    ***** END LICENSE BLOCK *****
-->
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css"?>
<?xml-stylesheet href="chrome://zotero/skin/bibliography.css"?>
<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">

<window
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml"
	id="integration-doc-prefs"
	class="bibliography-window"
	persist="screenX screenY width height sizemode"
	data-l10n-id="integration-docPrefs-window"
	onload="Zotero_File_Interface_Bibliography.init();"
	>
	<dialog
		id="zotero-doc-prefs-dialog"
		class="zotero-dialog-window"
		orient="vertical"
		buttons="accept,cancel,help"
		onclose="document.documentElement.cancelDialog(); event.preventDefault(); event.stopPropagation();">
		<script>
			var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
			Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
			Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
			Services.scriptloader.loadSubScript('chrome://zotero/content/elements/styleConfigurator.js', this);
			Services.scriptloader.loadSubScript("chrome://zotero/content/bibliography.js", this);
		</script>
		<html:link rel="localization" href="zotero.ftl"/>

		<vbox id="zotero-bibliography-container">
			<style-configurator id="style-configurator" />

			<vbox id="automaticCitationUpdates-vbox">
				<checkbox id="automaticCitationUpdates-checkbox" data-l10n-id="integration-prefs-automaticCitationUpdates" native="true"/>
				<description class="row-description" data-l10n-id="integration-prefs-automaticCitationUpdates-description"></description>
			</vbox>

			<hbox id="exportImport" hidden="true">
				<button id="exportDocument" data-l10n-id="integration-prefs-exportDocument" />
			</hbox>

			<vbox class="advanced-options">
				<hbox class="advanced-header">
					<html:span class="advanced-header-icon"></html:span>
					<html:div data-l10n-id="bibliography-advancedOptions-label"></html:div>
				</hbox>
				<vbox class="advanced-body">
					<vbox class="advanced-row" id="formatUsing-container">
						<checkbox id="formatUsingBookmarks" class="advanced-checkbox" data-l10n-id="integration-prefs-bookmarks" native="true"/>
						<label class="row-description" id="bookmarks-caption" data-l10n-id="integration-prefs-bookmarks-description"></label>
						<label class="row-description" id="bookmarks-file-format-notice" data-l10n-id="integration-prefs-bookmarks-formatNotice"/>
					</vbox>
					<vbox class="advanced-row" id="automaticJournalAbbreviations-container">
						<checkbox id="automaticJournalAbbreviations" class="advanced-checkbox" data-l10n-id="integration-prefs-automaticJournalAbbeviations" native="true"/>
						<description class="row-description" data-l10n-id="integration-prefs-automaticJournalAbbeviations-description"></description>
					</vbox>
				</vbox>
			</vbox>
		</vbox>
	</dialog>
</window>